<%@page import="net.vinote.smart.platform.service.bean.LayoutCatalog"%>
<%@page import="net.vinote.smart.platform.exception.PlatformException"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!-- 过时了,已被layout.jsp替代 -->
<%@include file="/comm/begin.jsp"%>
<%
	String layoutID = request.getParameter("LayoutID");
	if (layoutID == null)
	    throw new PlatformException("参数页面编号LayoutID丢失!");
	LayoutCatalog catalog = SRE.getLayoutCatalog(layoutID);
	if (catalog == null)
	    throw new PlatformException("页面编号:" + layoutID + " 不存在!");
	String layout = catalog.getLayoutStyle();
	String queryString = request.getQueryString();
	if ("Frame".equals(layout))
	{
	    String url = SRE.getCodeItems("PageLayout")
	            .get("Frame")
	            .getAttr01();
	    response.sendRedirect(basePath + url + "?" + queryString);
	}else if("Tree".equals(layout)){
		String url = SRE.getCodeItems("PageLayout")
	            .get("Tree")
	            .getAttr01();
	    response.sendRedirect(basePath + url + "?" + queryString);
	}
	else if ("Accordion".equals(layout))
	{
	    
	}
	else
	{
	    throw new PlatformException("未知布局:" + layout);
	}
%>
<%@include file="/comm/end.jsp"%>
